package com.dongdongshop.service;

import com.dk.util.PageResult;
import com.dongdongshop.pojo.TbSpecification;
import com.dongdongshop.pojo.TbSpecificationOption;
import com.dongdongshop.vo.SpecVo;

import java.util.List;

public interface SpecificationService {


    PageResult getall(Integer pagenum, Integer pagesize);



    //增加
    int addspecifs(TbSpecification tb, List<TbSpecificationOption> tbSpecificationOptions);

    //修改回显
    SpecVo findSpecbyid(Long id);

    //修改
    int updatespec(TbSpecification tb, List<TbSpecificationOption> tbSpecificationOptions);

    int deleteid(Long id);

    List<TbSpecification> getlist();
}
